﻿using FangPage.Core;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;

namespace ProjectManager.User.LoginController
{
    public class logout:FPController
    {
        public override void Controller()
        {
            HttpContext.Current.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);

            FPResponse.WriteSuccess("退出成功。");
        }
    }
}
